package com.qf.pojo.resVo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResult {

    private Integer code;

    private String msg;

    private Object data;

    private Long total;


    public BaseResult success(){
        return new BaseResult(1,"成功!",null,null);
    }

    public BaseResult fail(){
        return new BaseResult(0,"失败!",null,null);
    }
}
